package com.heisen.security.configure;

import com.heisen.security.interceptor.XmServerProtectInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author sen
 * @description
 * @date 2023/12/19 15:02
 */
@Configuration
public class XmServerProtectConfigure implements WebMvcConfigurer {

    @Autowired
    XmServerProtectInterceptor xmServerProtectInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(xmServerProtectInterceptor);
    }
}
